// 登录接口携带参数类型

export interface userInfo {
  avatar: string
  name: string
  roles: Array<string>
  buttons: Array<string>
  routes: Array<string>
}

export interface loginFormData {
  name?: string
  username?: string

  password: string
}

export interface ResponseData {
  code: string | number
  message: string
  ok: boolean
}

// 登录接口返回的数据类型
export interface loginResponseData extends ResponseData {
  data: string
}

export interface logoutResponseData extends ResponseData {
  data: null
}

//服务器返回的用户信息数据类型
export interface userResponseDate extends ResponseData {
  data: userInfo
}
